import { Table, Column, Model, DataType } from 'sequelize-typescript';
import Base from './Base';

@Table({
  tableName: 'user'
})
export default class User extends Base<User> {
  @Column({
    type: DataType.STRING,
    unique: true,
    allowNull: false
  })
  account: string;

  @Column({
    type: DataType.STRING,
    allowNull: false
  })
  password: string;
}
